#include<stdio.h>
#include"getsum.h"
int getsum(int begin,int end)
{
  int sum=0;
  int i;
  for(i=begin;i<=end;i++)
  {
    sum+=i;
  }
    printf("%d到%d的和是%d\n",begin,end,sum);
  return sum;
}
